import { useContext } from 'react'
import { Context } from './context'

/* export default function Child() {
  return (
    <Context.Consumer>
      {(value) => <div>Child: {value.name}</div>}
    </Context.Consumer>
  )
} */

export default function Child() {
  const value = useContext(Context)
  return <div>Child: {value.name}</div>
}
